package task13;

import com.sun.org.apache.bcel.internal.generic.NEW;
import com.sun.org.apache.xerces.internal.dom.PSVIAttrNSImpl;
import java.util.Scanner;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/4/13 9:38
 * @description:
 */
public class PrinterTest {

  public static void main(String[] args) {
    System.out.println("请输入：0表示HP，1表示Canono");
    Scanner scanner=new Scanner(System.in);
    int a=scanner.nextInt();

    PrinterFactory pf=new PrinterFactory();
    Printer printer = pf.getPrinter(a);
    printer.open();
    printer.print();
    printer.close();

  }

  private static void getprinter(int a) {
  }

}
